<?php

namespace app\admin\controller;

use think\Controller;

class Base extends Controller
{
    public function initialize()
    {
        $webInfo = model('System')->find();
        session('webInfo', $webInfo);
        if (!session('?username')) {
            return $this->error('请先登录！','admin/index/index');
        }
    }
}
